<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>用户交流</title>
  <!-- 引入 Bootstrap CSS -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css">
  <style>
    body {
      background-color: #f8f9fa;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      margin: 0;
      padding: 0;
    }
    .container {
      padding: 20px;
    }
    h2 {
      color: #343a40;
    }
    p {
      color: #6c757d;
    }
    .message {
      background-color: white;
      border: 1px solid #dee2e6;
      border-radius: 8px;
      padding: 15px;
      margin-bottom: 15px;
    }
    .message h5 {
      margin-bottom: 5px;
    }
  </style>
</head>
<body>
<div class="container">
  <h2>用户交流</h2>
  <p>与其他用户交流墙体材料选择的经验和心得。</p>
  <!-- 模拟一些交流消息 -->
  <div class="message">
    <h5>用户1</h5>
    <p>我在潮湿地区用了某种材料，效果还不错。</p>
  </div>
  <div class="message">
    <h5>用户2</h5>
    <p>我觉得在地震多发区，材料的抗震性能很重要。</p>
  </div>
  <form action="postMessage" method="post">
    <div class="mb-3">
      <label for="message" class="form-label">发表留言</label>
      <textarea class="form-control" id="message" name="message" rows="3" required></textarea>
    </div>
    <button type="submit" class="btn btn-primary">发表</button>
  </form>
</div>
<!-- 引入 Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>